﻿using System;
using System.Collections.Generic;
using System.Text;
using Truron.Purchase.Model;
using Truron.Purchase.Model.RemoteModel;

namespace Truron.Purchase.Interface
{
    public interface IPurchase_OuterRequestDetailService
    {
        int save(Purchase_OuterRequestDetail entity, UserCache user);
        List<Purchase_OuterRequestDetail> GetDetailList(int RequestId);
        (int count, List<Purchase_OuterRequestDetail> list) GetList(string searchKey, int pageSize, int pageIndex, string searchJson,List<int> FinishIds,List<int> ownerIds,int OuterStatus);
        void UpdateOwner(int UserId, List<int> RequestIds,UserCache user);
        void UpdateStatus(int RequestId, int Status, UserCache user);
        List<Purchase_OuterRequestDetail> GetRelationRequestList(List<int> RequestIds);
        List<Purchase_OuterRequestDetail> GetAllList();


        (int count, List<Purchase_OuterRequestDetail> list) GetAuditList(string searchKey, int pageSize, int pageIndex, string searchJson, List<int> userIds);
        Purchase_OuterRequestDetail GetEntity(int id);
    } 
}
